<%@page import="com.fractalist.man.constants.ManConstants"%>
<%@page import="com.fractalist.base.core.constants.SystemConstants"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/includes.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
	pageContext.setAttribute("baseweburl",
			SystemConstants.UPLOAD_WEB_URL);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>标签</title>
<link rel="stylesheet" href="${ctx }/css/styles.css" type="text/css" />
<script type="text/javascript" src="${ctx }/js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="${ctx }/js/jquery.form.js"></script>
<jsp:include page="/common/jscalendar.jsp"></jsp:include>
</head>
<body style="overflow-y: scroll;">
	<script>
		var baseweburl = "${baseweburl}";


		function createTag() {
			var tagName = $("#tagName").val();
			if (tagName == "") {
				alert("请输入标签的名称");
				return;
			}
			$.post("${ctx}/manager/createTag.action", {
				name : tagName,
				tagId : $("#tagId").val()
			}, function(data) {
				location.href = "${ctx}/manage/viewTagPage.action";
			})
		}
	</script>
	<div id="wrapper">
		<div id="content_wrap">
			<div class="tabs_content">
				<div class="active_tab" id="tab1"></div>
				<div id="table_wrapper" style="width: 100%; overflow: auto;">
						<table class="table" cellpadding="0" cellspacing="0">
							<input type="hidden" name="tagId" id="tagId" value="${tag.id }" />
							<tr>
								<td>标签名称</td>
								<td><input id="tagName" name="tagName" style="width: 600px;"
									value="${tag.tagName }" /></td>
							</tr>
							<tr>
								<td></td>
								<td><input type="button" value="提交" onclick="createTag();" /></td>
							</tr>
						</table>
				</div>
			</div>
		</div>
	</div>
	</div>
</body>
</html>

